package com.advert.boot.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 产品信息 表单实体
 *
 * @author Theo
 * @since 2024-07-29 11:17:26
 */
@Data
@Schema(description = "产品信息Form实体")
public class OrderForm implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "产品信息ID")
    private Integer totalFee;

    @NotBlank(message = "厂家/供应商名称不能为空")
    @Schema(description = "订单编号")
    private String orderNo;

    @NotBlank(message = "品牌名称不能为空")
    @Schema(description = "品牌名称")
    @Size(max = 128, message = "品牌名称长度不能超过128个字符")
    private String body;
}
